package com.shell.mystudent;

import android.net.Uri;

public class DBUtil {
    public static final String DB_NAME="student.db";
    public static final String TABLE_NAME="studentScore";

    public static final String STU_ID="_id";
    public static final String STU_NAME="name";
    public static final String STU_SCORE="score";

    public static final String CREATE_TABLE="create table "+TABLE_NAME+" ( "+STU_ID+" integer primary key autoincrement, "+STU_NAME+" text not null, "+STU_SCORE+" integer );";
    //URI参数，下一章实现ContentProvider时使用
    public static final String AUTHORITY="com.shell.student";
    public static final String PATH_SINGLE="studentScore/#";
    public static final String PATH_MULTIPLE="studentScore";
    public static final String CONTENT_URI_STRING="content://"+AUTHORITY+"/"+PATH_MULTIPLE;
    public static final String SINGLE_URI_STRING="content://"+AUTHORITY+"/"+PATH_SINGLE;
    public static final Uri CONTENT_URI=Uri.parse(CONTENT_URI_STRING);
    public static final Uri SINGLE_URI=Uri.parse(SINGLE_URI_STRING);


}
